package com.thjk.bdf.preloan.web.enums;
public enum ProtocolEnum {

	
	PROTOCOL_XXCX("1","《个人信息/企业信息查询授权书》"),
	PROTOCOL_ZXCX ("2","《张家口银行个人信用报告查询授权书》"),
	PROTOCOL_JKHT("3","《张家口银行线上借款合同》"),
	PROTOCOL_FWXY("4","《张家口银行-通联宝旺铺贷客户服务协议》"),
	PROTOCOL_WTKK("5","《张家口银行-通联宝旺铺贷委托扣款授权书》"),
	PROTOCOL_JKJJ("6","《张家口银行借款借据》"),
	PROTOCOL_TQZZHT("7"," 《借款合同提前终止合同》");
	
    
	private String code;
	private String desc;
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	ProtocolEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getRetValue(String value) {
		if (value != null) {
			for (ProtocolEnum loanInfoEnum : values()) {
				if (loanInfoEnum.getCode().equals(value)) {
					return loanInfoEnum.desc;
				}
			}
		}
		return null;
	}
}
